package data_structure.generic;

/**
 * 泛型：generic
 * 抽象数据类型：Abstract Data Type
 * <...>闭合的尖括号就是Java语法中泛型得特征
 *
 *
 */
/*
public class Demo1 {
    //看返回值<0,==0,>0
    private static int compare(long e1,long e2){

    }
    //带泛型得冒泡排序
    public static void bubbleSort(long[] array) {
        for (int i = 0; i < array.length-1; i++) {
            for (int j = 0; j < array.length-i-1; j++) {
                long e1=array[j];
                long e2=array[j+1];
                int cmp=compare(e1,e2);
                //e1>e2时交换
                if(cmp>0){

                }
            }
        }
    }
}*/
